package cn.dengta.webapp.trade.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class UserVipEquityVO implements Serializable {

	/** 用户昵称 */
	private String nickName;
	/** 用户头像 */
	private String avatar;
	/** 群VIP等级 1=VIP; */
	private Integer level;
	/** 群VIP过期时间 */
	private Date expireTime;
	/** 已购买且未过期为true,  否则为false */
	private Boolean vip;
	/** 群VIP 内购集合 */
	private List<UserVipProductVO> vos;

	public void setGroupVipExpireTime(Date expireTime) {
		this.expireTime = expireTime;
		if (this.expireTime != null) {
			this.vip = this.expireTime.after(new Date());
		} else {
			this.vip = Boolean.FALSE;
		}
	}

}
